// excel_merge project main.go
package main

import (
	"excel_merge/core"
	"fmt"
)

func main() {
	result := core.ReadExcel("E:\\Python\\HV转换.xlsx", true)
	s := make([][]interface{}, 0)

	for _, v := range result {
		s2 := make([]interface{}, len(v))
		for j, k := range v {
			s2[j] = k
		}
		s = append(s, s2)
	}
	switch i := s[0][1].(type) {
	case nil:
		fmt.Println("x is nil") // type of i is type of x (interface{})
	case int:
		fmt.Println(i) // type of i is int
	case float64:
		fmt.Println(i) // type of i is float64
	case func(int) float64:
		fmt.Println(i) // type of i is func(int) float64
	case bool:
		fmt.Println("type is bool")
	case string:
		fmt.Println("type is string") // type of i is type of x (interface{})
	default:
		fmt.Println("don't know the type") // type of i is type of x (interface{})
	}

	fmt.Println(s[0][1])
	// core.WriteExcel("E:\\Python\\HV转换2.xlsx", []interface{}{}, s)
}
